package com.dmap.analysispoint.bo;

import com.dmap.analysispoint.po.BurialPoint;
import com.dmap.base.units.DateUtil;

import java.io.Serializable;

/**
 * \* @author:zhouhao
 * \* Date:09/05/2018
 * \* Description:
 * \*
 */

public class BurialPointAddEquipmentBo implements Serializable {

    private Long id;
    private Long userId;
    private String sn;
    private Long companyId;
    private Integer placeId;
    private String projectId;
    private String firmwareId;
    private String firmwareVersion;
    private String appVersion;
    private Integer equipmentType;
    private Long createTime;

    public BurialPointAddEquipmentBo(BurialPoint burialPoint) {
        this.id = burialPoint.getId();
        this.userId = burialPoint.getUserId();
        this.sn = burialPoint.getSn();
        this.placeId = burialPoint.getPlaceId();
        this.projectId = burialPoint.getProjectId();
        this.firmwareId = burialPoint.getFirmwareId();
        this.firmwareVersion = burialPoint.getFirmwareVersion();
        this.appVersion = burialPoint.getAppVersion();
        this.equipmentType = burialPoint.getEquipmentType();
        this.createTime = DateUtil.getHour0ByTime(burialPoint.getLoginTime());
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Integer getPlaceId() {
        return placeId;
    }

    public void setPlaceId(Integer placeId) {
        this.placeId = placeId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getFirmwareId() {
        return firmwareId;
    }

    public void setFirmwareId(String firmwareId) {
        this.firmwareId = firmwareId;
    }

    public String getFirmwareVersion() {
        return firmwareVersion;
    }

    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public Integer getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(Integer equipmentType) {
        this.equipmentType = equipmentType;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}
